import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    showLoginPrompt: false
  },
  mutations: {
    setShowLoginPrompt(state, show) {
      state.showLoginPrompt = show;
    }
  },
  actions: {
    triggerLoginPrompt({ commit }, show) {
      commit('setShowLoginPrompt', show);
    }
  },
  modules: {
  }
})
